package com.thx.information.service;

import com.thx.common.service.BaseManager;
import com.thx.information.dao.InformationExtDao;
import com.thx.information.model.InformationExt;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class InformationExtService extends BaseManager<InformationExt> {

  private static final Logger logger = LoggerFactory.getLogger(InformationExtService.class);

  @Autowired
  private InformationExtDao informationExtDao;

  /**
   * 查询某条公文的浏览次数
   * 
   * @author 刘杰
   * @date 2014-6-3 下午3:29:52
   * @param infoId
   * @return
   */
  public Long queryViewCountByInfoId(Long infoId) {
    return informationExtDao.queryViewCountByInfoId(infoId);
  }

}
